replace exact word in php

44

$string = preg_replace('/\bthe\b/', '', $string);

Comments

Submit
0 Comments